package com.example.springbootbook2.model;

import lombok.Data;

import java.util.List;

@Data
public class PageResult {
    private List<BookInfo> records;
    private Integer total;
    private PageRequest pageRequest;

    public PageResult(List<BookInfo> data, Integer total, PageRequest pageRequest) {
        this.records = data;
        this.total = total;
        this.pageRequest = pageRequest;
    }
}
